import Vue from 'vue'
import Router from 'vue-router'
import ArticleViewer from '@/components/ArticleViewer'
import ArticleWriter from '@/components/ArticleWriter'
import ArticleList from '@/components/ArticleList'
import Money from '@/components/Money'
import Video from '@/components/VideoViewer'
import Page from '@/components/PageViewer'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      component: ArticleList,
    },

        {
          path: '/article',
          name: 'ArticleViewer',
          component: ArticleViewer
        }
        ,
        {
          path: '/write',
          component: ArticleWriter
        },{
          path:'/list',
          component:ArticleList
        },
        {
          path:'/money',
          component:Money
        },
    {
      path:'/video',
      component:Video
    },
    {
      path:'/page',
      component:Page,
    }



  ]
})
